/**
 * Director.java
 * In the main method of class Director add the following:
 *    1. An instruction to construct a new object and assign it to ourCar
 *
 *    2. An instruction to construct a new object and assign it to neighborCar
 *       using the Overloaded constructor with the following input parameters:
 *
 *       Inputmiles = 50. inputgas = 20.
 *
 *    3. An instruction to output (using System.out.println) the number of
 *       miles traveled by ourCar
 *
 *    4. An instruction to increase the amount of gasoline in the neighborCar
 *       by 15 gallons.
 *
 *    5. An instruction to output the amount of gasoline in the neighborCar.
 *
 *  @author John Thomason
 *  Cource: CS222 Java Programming II
 *    Date: Fall 2008
 * Seminar: 4
 *  Assign: 3
 */


/**
 * Director
 */
public class Director
{

//INSTANCE VARS

     private Auto ourCar, neighborCar;


    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {

        //Instance of Director; required to access
        //private instance variables "ourCar" and "neighborCar".
        Director d    = new Director();

        //Requirement #1
        d.ourCar      = new Auto();

        //Requirement #2
        d.neighborCar = new Auto(50,20);

        //Requirement #3
        prt("Miles traveled by \"ourCar\" " + d.ourCar.getMiles());

        //Requirement #4
        d.neighborCar.setGas(d.neighborCar.getGas() + 15);

        //Requirement #5
        prt("Amount of gas in \"neighborCar\" " + d.neighborCar.getGas());

    }//End main()


    /**
     * Display a preformatted message string.
     *
     * @param msg   The message string
     */
    public static void prt(String msg){
        System.out.println(msg);
    }//prt(String)

    
}//End Director Class
